#ifdef MEM_DEBUG
//must be the final include in any file
//wont work with c code (it uses malloc and calloc)

#ifndef	MEMORY_H
#define MEMORY_H

#include <string>

namespace Engine
{
	void* operator new(size_t size);

	void* operator new(size_t size, const char* fileName, int line);

	void operator delete(void* address);

	void IncrementDepth();

}

#define new new(__FILE__, __LINE__)

#endif//include guard

#endif// ifdef MEM_DEBUG